package com.demo.services.user.impl;

import com.demo.modules.user.po.RolePO;
import com.demo.services.user.RoleService;
import com.demo.services.user.repo.RoleRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleRepository roleRepository;

    @Override
    public List<RolePO> findByCodes(List<String> codes) {
        return roleRepository.findByCodes(codes);
    }
}
